﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.IO;

namespace KATS_Client.FileSystemWatcher
{
    /// <summary>
    /// A file system event
    /// </summary>
    public class FileSystemEvent : EventArgs
    {
        /// <summary>
        /// Local location
        /// </summary>
        public string LocalLocation;
        /// <summary>
        /// New local location
        /// </summary>
        public string NewLocalLocation;

        /// <summary>
        /// The change type
        /// </summary>
        public WatcherChangeTypes ChangeType;

        /// <summary>
        /// Create a filesystem event
        /// </summary>
        /// <param name="LocalLocation">The local location</param>
        /// <param name="ChangeType">The type of event</param>
        public FileSystemEvent(string LocalLocation, WatcherChangeTypes ChangeType)
        {
            this.LocalLocation = LocalLocation;
            this.ChangeType = ChangeType;
        }
        /// <summary>
        /// Create a filesystem event
        /// </summary>
        /// <param name="LocalLocation">The current location</param>
        /// <param name="NewLocalLocation">The new location</param>
        /// <param name="ChangeType">The type of event</param>
        public FileSystemEvent(string LocalLocation, string NewLocalLocation, WatcherChangeTypes ChangeType)
        {
            this.LocalLocation = LocalLocation;
            this.NewLocalLocation = NewLocalLocation;
            this.ChangeType = ChangeType;
        }
    }
}
